<%@ page language="java" import="java.util.*,com.anhry.app.safety.util.Util" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>已发送通知-修改</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">	
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
    <script src="<%=basePath%>/js/oa.js" type="text/javascript"></script>
   	<script type="text/javascript" src="<%=basePath%>/js/dbdialog/lhgdialog.min.js<%=Util.LHGDIALOG%>"></script>
   	
   	    <script src="<%=basePath%>/js/util.js" type="text/javascript"></script>
	<style>
		.rname{width:800;height:70px;border:1px #aaa solid;overflow:scroll;background:#fefefe;}
		.menuitem {float:left;POSITION: absolute; VISIBILITY: hidden;width:860;}
		.menuitem1 {float:left;POSITION: static; VISIBILITY: visible;width:860;}
	</style>
	<script type="text/javascript">
		function deleFj(id,baseName){
			$.ajax({
			type:"POST",
			url:baseName+"/oa/notice_deleFj.action?fjId="+id,
			success:function(data){
				if(data=="1"){
					$("#fj_"+id).remove();
					//document.getElementById("fj_"+id).style.display="none";
				}else{
					alert('删除失败！');
				}
		    }
		});				
		}
		
		$(document).ready(function(){
			$("#addMore").click(function(){//附件添加
				var td = document.getElementById("more");	
				var br = document.createElement("br");
				var input = document.createElement("input");
				var button = document.createElement("input");			
				input.type = "file";
				input.name = "myFile";
				input.size = "60";
				button.type = "button";
				button.value = "删除";	
				button.onclick = function(){
					td.removeChild(br);
					td.removeChild(input);
					td.removeChild(button);
				}			
				td.appendChild(br);
				td.appendChild(input);
				td.appendChild(button);	
			});
		});
		
		$(function() {
			
			$("input[name='goback']").click(function() {	
				window.location.href='<%=basePath%>/oa/notice_noticeList.action?num=${str_num}&size=${str_size}&keyWord=${keyWord}&beginTime=${beginTime }&endTime=${endTime }';
			});
			
		});
	</script>	
	
  </head>
  
  <body>
        <div class="body-box">
        <div class="map">
			<div class="map_con">
				您当前的位置：协同办公&gt; 公告通知 &gt; 已发通知 &gt;修改
			</div>
		</div>
		<div id="container">
		<form name="noticeForm" action="<%=basePath%>/oa/notice_noticeSaveOrUpdate.action" method="post" onsubmit="waitingDialog();" enctype="multipart/form-data">
	    	<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
				<tr>
					<td colspan="2" class="title_li">通知通告修改</td>
				</tr>				
				<tr>				
					<td width="100" class="title_td">标题：</td>
					<td><STRONG>&nbsp;&nbsp;${notice.noticeTitle }</STRONG></td>
				</tr>
				<tr>
					<td class="title_td">发件人：</td>
					<td >&nbsp;&nbsp;${notice.tbUser.userRealName }</td>
				</tr>				
				<tr>
					<td class="title_td">收件人：</td>
					<td >
						<s:if test="%{userNamesList.size>0}">
							&nbsp;&nbsp;管理员为：
							<s:iterator id="user" value="userNamesList">
							${user.userRealName };
							</s:iterator>
						</s:if>
						<s:if test="%{corpNamesList.size>0}">
							<br/>&nbsp;&nbsp;企业为：
							<s:iterator id="corp" value="corpNamesList">
							${corp.corpName };
							</s:iterator>
						</s:if>
					</td>
				</tr>				
				<tr>
					<td class="title_td">时间：</td>
					<td >&nbsp;&nbsp;<s:date name="notice.noticeTime" format="yyyy年MM月dd日 HH:mm"/></td>
				</tr>				
				<tr>
					<td class="title_td">紧急程度：</td>
					<td >&nbsp;&nbsp;${notice.isExigence==1?'<font color="red">紧急</font>':'普通' }</td>
				</tr>				
				<tr>
					<td class="title_td">附件：</td>
					<td id="more">
						<input type="button" name="am" value="添加附件" id="addMore" class="link_input"/><br/>
						<s:if test="%{fjList.size>0}">
							<s:iterator id="fj" value="fjList"  status="st">
								&nbsp;&nbsp;<span id="fj_${fj.id}">${fj.fjTitle}&nbsp;&nbsp;<a href="javascript:deleFj('${fj.id }','<%=basePath%>')">删除</a><s:if test="!#st.last"><br/></s:if></span>
							</s:iterator>
						</s:if>
					</td>
				</tr>
<%--				<tr>	--%>
<%--					<td class="title_td">内容：</td>--%>
<%--					<td >						--%>
<%--						<FCK:editor instanceName="noticeContent" width="800" height="300" toolbarSet="Basic">--%>
<%--							<jsp:attribute name="value">${notice.noticeContent }</jsp:attribute>--%>
<%--							<jsp:body><FCK:config id="cmbSkins" SkinPath="skins/office2003/" /></jsp:body>--%>
<%--				        </FCK:editor>--%>
<%--					</td>--%>
<%--				</tr>	--%>
				<tr>	
					<td class="title_td">内容：</td>
					<td >
						<div style="margin-left: 5px">
							<textarea name="noticeContent" style="display:none">${notice.noticeContent }</textarea>
							<iframe id="eWebEditor1" src="<%=Util.EDITOR_BASE_URL %>/ewebeditor/ewebeditor.htm?id=noticeContent&style=standard600&skin=office2003" frameborder="0" scrolling="no" width="600" height="350"></iframe> 
						</div>
					</td>
				</tr>										
			</table>
			<table border="0" cellspacing="0" cellpadding="0"  width="100%" style="float:left; padding-top:15px;padding-bottom:5px;">
				<tr>
					<td align="center">
						<input type="submit" id="btnSubmit1" class="link_input" value="提 交"/>
						<input type="button" class="link_input" value="返 回" name="goback"/>
					</td>
				</tr>
			</table>
			<input type="hidden" value="${notice.id }" name="noticeId"/>
			<input type="hidden" value="${keyWord }" name="keyWord"/>
			<input type="hidden" value="${beginTime }" name="beginTime"/>
			<input type="hidden" value="${endTime }" name="endTime"/>
			<input type="hidden" value="${str_num }" name="num"/>
			<input type="hidden" value="${str_size }" name="size"/>
			</form>
	 </div>
	 <!-- 
	    <div class="right_bottom">
			<div style="width:11px;float:left"><img src="<%=basePath%>/images/right_bottom.gif"/></div>
			<div style="width:16px;float:right"><img src="<%=basePath%>/images/right_rbottom.gif"/></div>
		</div>
		 -->
	  </div>
  </body>
  <s:if test="%{editOk}"><script type="text/javascript">alert('修改成功');</script></s:if>
</html>
